﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;

namespace CoderJoe.WoW.GearManager.Views
{
    /// <summary>
    /// Interaction logic for LoadFromArmoryView.xaml
    /// </summary>
    public partial class LoadFromArmoryView : Window
    {
		[Dependency]
		public LoadCharacterModel Model 
		{
			get { return (LoadCharacterModel)this.DataContext; }
			set { this.DataContext = value; }
		}
		[Dependency]
		public LoadCharacterController Controller { get; set; }

        public LoadFromArmoryView()
        {
            InitializeComponent();
        }

		private void OkButton_Click(object sender, RoutedEventArgs e)
		{
			Controller.LoadCharacter(Model);
			this.Close();
		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{
			this.Close();
		}
    }
}
